/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/15
\**********************/
#include "LuaGroupBox.h"

#define CObjPtr ((CGroupBoxUI*)m_cobj)

namespace DuiLib {

void LuaGroupBox::SetTextColor(DWORD dwTextColor)
{
    CObjPtr->SetTextColor(dwTextColor);
}

DWORD LuaGroupBox::GetTextColor()
{
    return CObjPtr->GetTextColor();
}

void LuaGroupBox::SetDisabledTextColor(DWORD dwTextColor)
{
    CObjPtr->SetDisabledTextColor(dwTextColor);
}

DWORD LuaGroupBox::GetDisabledTextColor()
{
    return CObjPtr->GetDisabledTextColor();
}

void LuaGroupBox::SetFont(int index)
{
    CObjPtr->SetFont(index);
}

int LuaGroupBox::GetFont()
{
    return CObjPtr->GetFont();
}

SDLUA_BEGIN_REGISTER(LuaGroupBox, GroupBox, VerticalLayout)
    SDLUA_REGISTER_FUN_CPP(LuaGroupBox, SetTextColor, SetTextColor)
    SDLUA_REGISTER_FUN_CPP(LuaGroupBox, GetTextColor, GetTextColor)
    SDLUA_REGISTER_FUN_CPP(LuaGroupBox, SetDisabledTextColor, SetDisabledTextColor)
    SDLUA_REGISTER_FUN_CPP(LuaGroupBox, GetDisabledTextColor, GetDisabledTextColor)
    SDLUA_REGISTER_FUN_CPP(LuaGroupBox, SetFont, SetFont)
    SDLUA_REGISTER_FUN_CPP(LuaGroupBox, GetFont, GetFont)
SDLUA_END_REGISTER

SDLUA_BEGIN_UNREGISTER(LuaGroupBox, GroupBox)
SDLUA_END_UNREGISTER(GroupBox)

}

#undef CObjPtr